package com.trkj.dao.cf;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.OrganizationStructure;

public interface OrganizationStructureDAO extends CrudRepository<OrganizationStructure, Long> {
	@Query("from OrganizationStructure u where u.versionName like ?1")
	public List<OrganizationStructure> queryByUserName(String username);
	@Query("from OrganizationStructure u")
	public List<OrganizationStructure> queryByPage(Pageable p);
}
